package utility;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;


public class Importer {
	
	public static void main(String[] args) throws IOException{
		File f = new File("recordedsessions.csv");
		if (! f.exists()) throw new RuntimeException();
		Scanner sc = new Scanner(f);
		File ff = new File("recordedsessions1.csv");
		FileWriter fw = new FileWriter(ff);
		final long epoch = 1241088015952L;
		while (sc.hasNext()){
			String s = sc.nextLine();
			String n = new String();
			int comma = s.indexOf(',');
			n = n.concat(s.substring(0,comma));
			int comma1 = s.indexOf(',',comma+1);
			long time = Long.parseLong(s.substring(comma+1,comma1));
			time += epoch;
			n = n.concat(","+time+",");
			long time2 = Long.parseLong(s.substring(comma1+1));
			time2 += epoch;
			n = n.concat(time2+"\n");
				fw.append(n);
		}
		sc.close();
		fw.close();
	}
}
